package com.wx.mall.sys.mapper;

import com.wx.mall.sys.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author j
 * @since 2020-03-18
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    /**
     * 批量新增
     *
     * @param permissionIds
     * @return
     */
    Integer adds(@Param("roleId") Integer roleId, @Param("permissionIds") List<Integer> permissionIds);
}
